﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BOSS.Domain.Security;

namespace BOSS.Service.Security
{
    /// <summary>
    /// 账号服务接口
    /// </summary>
    public interface IAccountService : IEntityService<Account, int>
    {
#if DEBUG
        /// <summary>
        /// 获取 / 设置 当前用户
        /// </summary>
        Account CurrentAccount { get; set; }
#else
        /// <summary>
        /// 获取 当前用户
        /// </summary>
        Account CurrentAccount { get;}
#endif
        void DoWorkflow();

        Account FindByLoginName(string loginName);

        /// <summary>
        /// 
        /// </summary>
        /// <param name="employeeId"></param>
        /// <returns></returns>
        Account FindByEmployeeId(string employeeId);
    }
}
